package com.jch.helloworld.configBeans.spel;

public class Demo {

    private int id;
    private double price;
    private long homePrice;
    private String name;
    private String nickName;
    private boolean isFlag;

    public Demo() {
    }

    public Demo(int id, double price, long homePrice, String name, String nickName, boolean isFlag) {
        this.id = id;
        this.price = price;
        this.homePrice = homePrice;
        this.name = name;
        this.nickName = nickName;
        this.isFlag = isFlag;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public long getHomePrice() {
        return homePrice;
    }

    public void setHomePrice(long homePrice) {
        this.homePrice = homePrice;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public boolean isFlag() {
        return isFlag;
    }

    public void setFlag(boolean flag) {
        isFlag = flag;
    }

    @Override
    public String toString() {
        return "Demo{" +
                "id=" + id +
                ", price=" + price +
                ", homePrice=" + homePrice +
                ", name='" + name + '\'' +
                ", nickName='" + nickName + '\'' +
                ", isFlag=" + isFlag +
                '}';
    }
}
